//url前缀 可配置
var urlPre='http://jokesday.duapp.com/';
//var urlPre='http://192.168.1.150:8088';
//var urlPre='http://192.168.8.106';
//获取设备信息的android
var uid="";
var ip="";
var phoneType="";

/**
 * 初始化
 */
function initCommon(){
	share.getUserInfo();
}

function tt(){
	alert(1);
}

/**
 * 获取设备信息的android回调
 * @param uid
 * @param ip
 * @param phoneType
 */
function userCallBack(uid,ip,phoneType){
	this.uid = uid;
	this.ip = ip;
	this.phoneType = phoneType;
	//初始化页面
	pageInit();
	return "success";
}

/**
 * 获取跳转过来的url参数
 * @param url
 * @param key
 * @returns
 */
function getParam(url,key){
	var re = new RegExp(key + '=([^&]*)(?:&)?');  
    return url.match(re) && url.match(re)[1];
}